package br.com.infocruz.seam.crm.ejb.controller;

import org.jboss.seam.annotations.Name;

import br.com.infocruz.seam.crm.ejb.facade.UserFacade;
import br.com.infocruz.seam.crm.ejb.model.User;

@Name("userController")
public class UserController extends AbstractController<User, UserFacade> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 517740063603069604L;
	
	public UserController() {
		super(User.class, UserFacade.class);
	}

	public User getUser() {
		return getModel();
	}

/*	@Override
	public String search() {
		String userName = getUser().getUserName();
		refreshResults(getFacade().findByUserName(userName, getMaxResults(), getFirstResult(), getOrderDirection(), getOrderColumn()));
		return LIST;
	}*/
	
	@Override
	public String view() {
		return super.view();
	}

}
